// import http from '@/utils/httpRequest.js'
// export function policy(params) {
//   return new Promise((resolve, reject) => {
//     http({
//       url: http.adornUrl("/media/media/getUploadSignature"),
//       method: "get",
//       params: http.adornParams({ bucketName: params.bucketName, fileName: params.fileName })
//     }).then(({ data }) => {
//       resolve(data);
//     })
//   });
// }
import request from '@/utils/request'
export function policy(query) {
  return request({
    url: '/media/media/getUploadSignature',
    method: 'get',
    params: query
  })
}